home *** CD-ROM | disk | FTP | other *** search
- /* ANSI C code generated by SmallEiffel. */
- /*
- -- SmallEiffel -- Release (- 0.97) -- FRANCE
- -- Copyright (C), 1994 - Dominique COLNET and Suzanne COLLIN
- -- University Henri Poincare' - Nancy 1 - email colnet@loria.fr
- -- CRIN (Centre de Recherche en Informatique de Nancy)
- -- FRANCE
- */
- #include "pretty.h"
- void rT42add_last(T42 *C,T0* a1){
- /*IF*/if (((C)->_capacity)<((rT42count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT42put(C,a1,(C)->_upper);
- }
- int rT42equal_like(/*C*/T0* a1,T0* a2){
- int R=0;
- /*IF*//*AF*/if (((T0 *)a1)==((T0 *)a2)) {
- R=1;
- }
- else if ((!(a1))||(!(a2))) {
- }
- else {
- R=rT7is_equal((T7*)a1,a2);
- }
- /*FI*/return R;
- }
- int rT42index_of(T42 *C,T0* a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(rT42equal_like(a1,rT42item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- void rT42put(T42 *C,T0* a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT42copy(T42 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT42make(C,((T42*)a1)->_lower,((T42*)a1)->_upper);
- }
- else {
- rT42resize(C,((T42*)a1)->_lower,((T42*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT42put(C,rT42item((T42*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT42make(T42 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT42clear_all(C);
- }
- /*FI*/}
- void rT104clear_all(T104 *C){
- T0 * _value=NULL;
- rT104set_all_with(C,_value);
- }
- int rT104count(T104 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT104set_all_with(T104 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT104put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT104resize(T104 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T104 *n=((T104*)new(104));
- rT104make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T104*)_other)->_lower);
- _up=rT2min((C)->_upper,((T104*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT104put((T104*)_other,rT104item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT104item(T104 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT104add_last(T104 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT104count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT104put(C,a1,(C)->_upper);
- }
- void rT104put(T104 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT104copy(T104 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT104make(C,((T104*)a1)->_lower,((T104*)a1)->_upper);
- }
- else {
- rT104resize(C,((T104*)a1)->_lower,((T104*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT104put(C,rT104item((T104*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT104make(T104 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT104clear_all(C);
- }
- /*FI*/}
- void rT119clear_all(T119 *C){
- T0 * _value=NULL;
- rT119set_all_with(C,_value);
- }
- int rT119count(T119 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT119set_all_with(T119 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT119put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT119resize(T119 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T119 *n=((T119*)new(119));
- rT119make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T119*)_other)->_lower);
- _up=rT2min((C)->_upper,((T119*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT119put((T119*)_other,rT119item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT119item(T119 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT119add_last(T119 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT119count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT119put(C,a1,(C)->_upper);
- }
- void rT119put(T119 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT119copy(T119 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT119make(C,((T119*)a1)->_lower,((T119*)a1)->_upper);
- }
- else {
- rT119resize(C,((T119*)a1)->_lower,((T119*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT119put(C,rT119item((T119*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT119make(T119 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT119clear_all(C);
- }
- /*FI*/}
- void rT123clear_all(T123 *C){
- T0 * _value=NULL;
- rT123set_all_with(C,_value);
- }
- int rT123count(T123 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT123set_all_with(T123 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT123put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT123resize(T123 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T123 *n=((T123*)new(123));
- rT123make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T123*)_other)->_lower);
- _up=rT2min((C)->_upper,((T123*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT123put((T123*)_other,rT123item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT123item(T123 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT123add_last(T123 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT123count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT123put(C,a1,(C)->_upper);
- }
- void rT123put(T123 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT123copy(T123 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT123make(C,((T123*)a1)->_lower,((T123*)a1)->_upper);
- }
- else {
- rT123resize(C,((T123*)a1)->_lower,((T123*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT123put(C,rT123item((T123*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT123make(T123 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT123clear_all(C);
- }
- /*FI*/}
- void rT125clear_all(T125 *C){
- T0 * _value=NULL;
- rT125set_all_with(C,_value);
- }
- int rT125count(T125 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT125set_all_with(T125 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT125put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT125resize(T125 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T125 *n=((T125*)new(125));
- rT125make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T125*)_other)->_lower);
- _up=rT2min((C)->_upper,((T125*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT125put((T125*)_other,rT125item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT125item(T125 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT125add_last(T125 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT125count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT125put(C,a1,(C)->_upper);
- }
- void rT125put(T125 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT125copy(T125 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT125make(C,((T125*)a1)->_lower,((T125*)a1)->_upper);
- }
- else {
- rT125resize(C,((T125*)a1)->_lower,((T125*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT125put(C,rT125item((T125*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT125make(T125 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT125clear_all(C);
- }
- /*FI*/}
- void rT127clear(T127 *C){
- C->_upper=((C)->_lower)-(1);
- }
- void rT127clear_all(T127 *C){
- T0 * _value=NULL;
- rT127set_all_with(C,_value);
- }
- T0 * rT127first(T127 *C){
- T0 * R=NULL;
- R=rT127item(C,(C)->_lower);
- return R;
- }
- int rT127count(T127 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT127set_all_with(T127 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT127put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT127resize(T127 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T127 *n=((T127*)new(127));
- rT127make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T127*)_other)->_lower);
- _up=rT2min((C)->_upper,((T127*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT127put((T127*)_other,rT127item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT127item(T127 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT127add_last(T127 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT127count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT127put(C,a1,(C)->_upper);
- }
- void rT127put(T127 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT127copy(T127 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT127make(C,((T127*)a1)->_lower,((T127*)a1)->_upper);
- }
- else {
- rT127resize(C,((T127*)a1)->_lower,((T127*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT127put(C,rT127item((T127*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT127make(T127 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT127clear_all(C);
- }
- /*FI*/}
- void rT128clear_all(T128 *C){
- T0 * _value=NULL;
- rT128set_all_with(C,_value);
- }
- int rT128count(T128 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT128set_all_with(T128 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT128put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT128resize(T128 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T128 *n=((T128*)new(128));
- rT128make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T128*)_other)->_lower);
- _up=rT2min((C)->_upper,((T128*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT128put((T128*)_other,rT128item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT128item(T128 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT128add_last(T128 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT128count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT128put(C,a1,(C)->_upper);
- }
- void rT128put(T128 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT128copy(T128 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT128make(C,((T128*)a1)->_lower,((T128*)a1)->_upper);
- }
- else {
- rT128resize(C,((T128*)a1)->_lower,((T128*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT128put(C,rT128item((T128*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT128make(T128 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT128clear_all(C);
- }
- /*FI*/}
- void rT132clear_all(T132 *C){
- T0 * _value=NULL;
- rT132set_all_with(C,_value);
- }
- int rT132count(T132 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT132set_all_with(T132 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT132put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT132resize(T132 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T132 *n=((T132*)new(132));
- rT132make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T132*)_other)->_lower);
- _up=rT2min((C)->_upper,((T132*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT132put((T132*)_other,rT132item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT132item(T132 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT132add_last(T132 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT132count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT132put(C,a1,(C)->_upper);
- }
- void rT132put(T132 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT132copy(T132 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT132make(C,((T132*)a1)->_lower,((T132*)a1)->_upper);
- }
- else {
- rT132resize(C,((T132*)a1)->_lower,((T132*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT132put(C,rT132item((T132*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT132make(T132 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT132clear_all(C);
- }
- /*FI*/}
- void rT139clear_all(T139 *C){
- T0 * _value=NULL;
- rT139set_all_with(C,_value);
- }
- int rT139count(T139 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT139set_all_with(T139 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT139put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT139resize(T139 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T139 *n=((T139*)new(139));
- rT139make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T139*)_other)->_lower);
- _up=rT2min((C)->_upper,((T139*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT139put((T139*)_other,rT139item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT139item(T139 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT139add_last(T139 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT139count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT139put(C,a1,(C)->_upper);
- }
- void rT139put(T139 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT139copy(T139 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT139make(C,((T139*)a1)->_lower,((T139*)a1)->_upper);
- }
- else {
- rT139resize(C,((T139*)a1)->_lower,((T139*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT139put(C,rT139item((T139*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT139make(T139 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT139clear_all(C);
- }
- /*FI*/}
- void rT141clear_all(T141 *C){
- T0 * _value=NULL;
- rT141set_all_with(C,_value);
- }
- T0 * rT141first(T141 *C){
- T0 * R=NULL;
- R=rT141item(C,(C)->_lower);
- return R;
- }
- int rT141count(T141 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT141set_all_with(T141 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT141put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT141resize(T141 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T141 *n=((T141*)new(141));
- rT141make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,XrT141lower(_other));
- _up=rT2min((C)->_upper,XrT141upper(_other));
- while (!((_i)>(_up))) {
- XrT141put(_other,rT141item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT141item(T141 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT141add_last(T141 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT141count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT141put(C,a1,(C)->_upper);
- }
- void rT141put(T141 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT141copy(T141 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT141make(C,XrT141lower(a1),XrT141upper(a1));
- }
- else {
- rT141resize(C,XrT141lower(a1),XrT141upper(a1));
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT141put(C,XrT141item(a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT141make(T141 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT141clear_all(C);
- }
- /*FI*/}
- void rT145clear_all(T145 *C){
- T0 * _value=NULL;
- rT145set_all_with(C,_value);
- }
- int rT145count(T145 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT145set_all_with(T145 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT145put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT145resize(T145 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T145 *n=((T145*)new(145));
- rT145make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T145*)_other)->_lower);
- _up=rT2min((C)->_upper,((T145*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT145put((T145*)_other,rT145item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT145item(T145 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT145add_last(T145 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT145count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT145put(C,a1,(C)->_upper);
- }
- void rT145put(T145 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT145copy(T145 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT145make(C,((T145*)a1)->_lower,((T145*)a1)->_upper);
- }
- else {
- rT145resize(C,((T145*)a1)->_lower,((T145*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT145put(C,rT145item((T145*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT145make(T145 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT145clear_all(C);
- }
- /*FI*/}
- void rT149clear_all(T149 *C){
- T0 * _value=NULL;
- rT149set_all_with(C,_value);
- }
- int rT149count(T149 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT149set_all_with(T149 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT149put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT149resize(T149 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T149 *n=((T149*)new(149));
- rT149make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T149*)_other)->_lower);
- _up=rT2min((C)->_upper,((T149*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT149put((T149*)_other,rT149item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT149item(T149 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT149add_last(T149 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT149count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT149put(C,a1,(C)->_upper);
- }
- void rT149put(T149 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT149copy(T149 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT149make(C,((T149*)a1)->_lower,((T149*)a1)->_upper);
- }
- else {
- rT149resize(C,((T149*)a1)->_lower,((T149*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT149put(C,rT149item((T149*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT149make(T149 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT149clear_all(C);
- }
- /*FI*/}
- void rT156clear_all(T156 *C){
- T0 * _value=NULL;
- rT156set_all_with(C,_value);
- }
- int rT156count(T156 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT156set_all_with(T156 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT156put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT156resize(T156 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T156 *n=((T156*)new(156));
- rT156make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T156*)_other)->_lower);
- _up=rT2min((C)->_upper,((T156*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT156put((T156*)_other,rT156item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT156item(T156 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT156add_last(T156 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT156count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT156put(C,a1,(C)->_upper);
- }
- void rT156put(T156 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT156copy(T156 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT156make(C,((T156*)a1)->_lower,((T156*)a1)->_upper);
- }
- else {
- rT156resize(C,((T156*)a1)->_lower,((T156*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT156put(C,rT156item((T156*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT156make(T156 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT156clear_all(C);
- }
- /*FI*/}
- int argument_count;
- T0 **argument;
-